<?php /* Smarty version 2.6.22, created on 2009-05-22 17:46:13
         compiled from myAdmin/index.sm */ ?>
<script language="JavaScript" src="/js/aj.js"></script>
<script language="JavaScript" src="/js/datepicker/dhtmlgoodies_calendar.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/myadmin.js"></script>
<script type="text/javascript" src="/cms/libs/fckeditor/fckeditor.js"></script>
<link rel="stylesheet" href="/js/datepicker/dhtmlgoodies_calendar.css" type="text/css" media="screen" title="core css file" charset="utf-8" />
<link rel="stylesheet" type="text/css" href="/js/myAdmin.css">
  <script >
    <?php echo '
      function toggle(sender)
        {
          if(sender.style.width == \'270px\' || sender.style.width == \'\') return;
          var state = document.getElementById(\'wrapped\').style.display;
          if (state == \'none\') state = 0;
          if (state == \'block\') state = 1;
          if (state == 1)
            {
              document.getElementById(\'left\').style.width = 270;
              document.getElementById(\'left\').className  = \'left\';
              document.getElementById(\'wrapped\').style.display = \'none\'
              document.getElementById(\'left\').style.backgroundColor = \'\';
              document.getElementById(\'unwrapped\').style.display = \'block\'
              document.getElementById(\'left\').onClick = function() {};
              document.getElementById(\'content\').style.height = \'70%\'
            }
          if (state == 0)
            {
              document.getElementById(\'left\').style.width = 1;
              document.getElementById(\'left\').style.backgroundColor = \'#FFBD08\';
              document.getElementById(\'left\').className = \'\';
              document.getElementById(\'left\').onClick = function() {toggle()};
              document.getElementById(\'wrapped\').style.display = \'block\'
              document.getElementById(\'content\').style.height = \'100%\'
              document.getElementById(\'unwrapped\').style.display = \'none\'
            }
        }

      var busy = false;
      function ajaz(data_,confirm_)
        {
          if (confirm_ && confirm_ != \'\')
            {
              if (!confirm(confirm_)) return
            }
          block(data_);
          return;
        }
    '; ?>

  </script>

<?php echo $this->_tpl_vars['header']; ?>


<body style="margin:2 2 2 2">
  <table border="0"  id="contentMain" cellpadding="0" cellspacing="0">
    <tr>
      <td class="left" onclick="toggle(this)" id="left" style="text-align:left !important;">
      <a href="#" class="right_opt" style="color: black; font-size: 10px;">Установленные модули</a>
        <div id="wrapped" style="display:none" >&nbsp;</div>
        <div id="unwrapped" style="display:block"> 
         <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "myAdmin/modules.sm", 'smarty_include_vars' => array('tree' => $this->_tpl_vars['tables'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "myAdmin/tableTree.sm", 'smarty_include_vars' => array('tree' => $this->_tpl_vars['tables'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
          <br />
          <ul class="menu">
            <li><a title="<?php echo $this->_tpl_vars['lg']['A_CreateTable']; ?>
" onclick="ajaz('page=newTableForm')" class="tab" ><?php echo $this->_tpl_vars['lg']['A_CreateTable']; ?>
</a></li>
            <li><a title="<?php echo $this->_tpl_vars['lg']['A_exportStruct']; ?>
" class="prev" onclick="ajaz('page=exportStruct')" ><?php echo $this->_tpl_vars['lg']['A_exportStruct']; ?>
</a></li>
            <li><a title="<?php echo $this->_tpl_vars['lg']['A_dump']; ?>
" onclick="ajaz('page=dump')" class="copy" ><?php echo $this->_tpl_vars['lg']['A_dump']; ?>
</a></li>
            <li><a title="<?php echo $this->_tpl_vars['lg']['A_CreatePlugin']; ?>
" onclick="ajaz('page=newplugin')" class="create" ><?php echo $this->_tpl_vars['lg']['A_CreatePlugin']; ?>
</a></li>
            <li><a title="<?php echo $this->_tpl_vars['lg']['A_sqlManager']; ?>
" onclick="ajaz('page=sqlManager')" class="mast" ><?php echo $this->_tpl_vars['lg']['A_sqlManager']; ?>
</a></li>
            <li><a title="<?php echo $this->_tpl_vars['lg']['A_LanguageManager']; ?>
"  onclick="ajaz('page=LanguageManager')" class="set" ><?php echo $this->_tpl_vars['lg']['A_LanguageManager']; ?>
</a></li>
            <li><a title="<?php echo $this->_tpl_vars['lg']['A_tableManager']; ?>
"  onclick="ajaz('page=tableManager')" class="set" ><?php echo $this->_tpl_vars['lg']['A_tableManager']; ?>
</a></li>
          </ul>
          <div id="loading">&nbsp;</div>
        </div>
      </td>
      <td style="width:4px;cursor:pointer; background-color: #FFBD08" onclick="toggle(this)"></td>
      <td valign="top" class="right">
        <div id='content'
         >&nbsp;</div>

      </td>
    </tr>
  </table>
</body>
<?php echo '<script>document.getElementById(\'cntManager\').className=\'topSelected\'</script>'; ?>

<?php echo $this->_tpl_vars['footer']; ?>

<script>
  <?php if ($_GET['t'] && ( ! $_POST['table'] && ! $_POST['page'] )): ?>
    ajaz('page=tableView&table=<?php echo $_GET['t']; ?>
');
  <?php else: ?>
    ajaz("page=intro");
  <?php endif; ?>
</script>